//
// Created by wkm on 2023-12-03.
//

#ifndef MYSYSTEMCLEARNING_MULT_CLKS_H
#define MYSYSTEMCLEARNING_MULT_CLKS_H

#include "systemc.h"

SC_MODULE(mult_clks) {
    sc_in<bool> vt15ck, addclk, adn, resetn, subclr, subn, ds1ck;
    sc_out<bool> ds1_add, ds1_sub;

    void prc_vt15ck();

    void prc_dsclk();

    sc_signal<bool> add_state, sub_state;

    SC_CTOR(mult_clks) {
        SC_METHOD(prc_vt15ck);
        sensitive_neg << vt15ck;
        SC_METHOD(prc_dsclk);
        sensitive_pos << ds1ck;
    }
};

#endif //MYSYSTEMCLEARNING_MULT_CLKS_H
